<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<h3>新增用户</h3>
<hr/>
<form th:action="@{/user/update}" method="post">


    姓名：<input type="text" name="name" th:value="${user.name}"/><br/>

    性别：<input type="radio" name="sex" value="1"  th:checked="${user.sex=='0'}" />女
           <input type="radio" name="sex" value="0" th:checked="${user.sex=='1'}" />男<br/>

    生日：<input type="date" name="brh" th:value="${#dates.format(user.brh,'yyyy-MM-dd')}"/><br/>

    入职时间：<input type="date" name="rtime" th:value="${#dates.format(user.rtime,'yyyy-MM-dd')}"><br>/><br/>

    学历：<input type="radio"  value="高中" name="xueli" th:checked="${user.xueli=='高中'}"/>高中<br/>
    <input type="radio"  value="大专" name="xueli"       th:checked="${user.xueli=='大专'}">大专<br/>
    <input type="radio"  value="本科" name="xueli"       th:checked="${user.xueli=='本科'}"/>本科<br/>

    <!--zid：<input type="text" name="zid"/><br/>-->



    职务:<select name="zid">


    <option th:each="zw :${zw}" th:text="${user.zid==zw.zid}?${zw.zname}:''"></option>

    <option   th:each="zw :${zw}" th:value="${zw.zid}" th:text="${zw.zname}"></option>
</select><br>




    地址：<input type="text" name="address" th:value="${user.address}"/><br/>

    电话：<input type="text" name="phone" th:value="${user.phone}"/><br/>

    联系人：<input type="text" name="lianxiren"  th:value="${user.lianxiren}"/><br/>


    部门:<select name="did">

    <option th:each="dept :${dept}" th:text="${user.did==dept.did}?${dept.dname}:''"></option>

    <option   th:each="dept :${dept}" th:value="${dept.did}" th:text="${dept.dname}"></option>
</select><br>


    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>